using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_HondaModelGroupManagerBase
    {
        public PT_HondaModelGroupManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity Insert(PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity Update(PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.Update(obj);             
        }
 
        public PT_HondaModelGroupEntity Delete(PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.Delete(obj);             
        }
 

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByCreatedBy (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByCreatedBy (string CreatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedBy = CreatedBy;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByCreatedDate (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedDate = CreatedDate;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByGroupCode (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"GroupCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GroupCode 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByGroupCode (int GroupCode )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupCode = GroupCode;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"GroupCode");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByGroupName (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"GroupName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GroupName 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByGroupName (string GroupName )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupName = GroupName;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"GroupName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByIsActive (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"IsActive");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsActive 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByIsActive (bool IsActive )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsActive = IsActive;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"IsActive");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByIsDeleted (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsDeleted 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByIsDeleted (bool IsDeleted )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsDeleted = IsDeleted;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByOrderIndex (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"OrderIndex");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien OrderIndex 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByOrderIndex (int OrderIndex )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.OrderIndex = OrderIndex;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"OrderIndex");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByUpdatedBy (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByUpdatedDate (PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>PT_HondaModelGroupEntity</returns>
        public PT_HondaModelGroupEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (PT_HondaModelGroupEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_HondaModelGroupEntity Select(PT_HondaModelGroupEntity obj)
        { 
            return (PT_HondaModelGroupEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_HondaModelGroupEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_HondaModelGroupEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_HondaModelGroupEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_HondaModelGroupEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_HondaModelGroupEntity> SelectAllLST()
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_HondaModelGroupEntity()),new PT_HondaModelGroupEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_HondaModelGroupEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_HondaModelGroupEntity(),option),new PT_HondaModelGroupEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedByLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedByLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedDateLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedDateLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupCode (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"GroupCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupCode (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"GroupCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupCodeLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupCode"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupCodeLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"GroupCode",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupCode (int GroupCode )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupCode = GroupCode;  
            return Adapter.SelectByField(obj,"GroupCode");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupCode (int GroupCode, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupCode = GroupCode;  
            return Adapter.SelectByField(obj,"GroupCode",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupCodeLST (int GroupCode )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupCode = GroupCode;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupCode"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupCode duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupCodeLST (int GroupCode, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupCode = GroupCode;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupCode",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupName (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"GroupName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupName (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"GroupName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupNameLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupName"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupNameLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"GroupName",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupName (string GroupName )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupName = GroupName;  
            return Adapter.SelectByField(obj,"GroupName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGroupName (string GroupName, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupName = GroupName;  
            return Adapter.SelectByField(obj,"GroupName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupNameLST (string GroupName )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupName = GroupName;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupName"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GroupName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByGroupNameLST (string GroupName, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.GroupName = GroupName;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GroupName",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsActive (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsActive");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsActive (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsActive",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByIsActiveLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsActive"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByIsActiveLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsActive",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsActive (bool IsActive )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsActive = IsActive;  
            return Adapter.SelectByField(obj,"IsActive");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsActive (bool IsActive, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsActive = IsActive;  
            return Adapter.SelectByField(obj,"IsActive",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByIsActiveLST (bool IsActive )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsActive = IsActive;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsActive"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsActive duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByIsActiveLST (bool IsActive, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsActive = IsActive;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsActive",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByIsDeletedLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByIsDeletedLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsDeleted",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsDeleted (bool IsDeleted, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsDeleted = IsDeleted;  
            return Adapter.SelectByField(obj,"IsDeleted",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByIsDeletedLST (bool IsDeleted )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsDeleted duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByIsDeletedLST (bool IsDeleted, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.IsDeleted = IsDeleted;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsDeleted",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByOrderIndex (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"OrderIndex");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByOrderIndex (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"OrderIndex",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByOrderIndexLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"OrderIndex"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByOrderIndexLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"OrderIndex",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByOrderIndex (int OrderIndex )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.OrderIndex = OrderIndex;  
            return Adapter.SelectByField(obj,"OrderIndex");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByOrderIndex (int OrderIndex, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.OrderIndex = OrderIndex;  
            return Adapter.SelectByField(obj,"OrderIndex",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByOrderIndexLST (int OrderIndex )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.OrderIndex = OrderIndex;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"OrderIndex"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien OrderIndex duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByOrderIndexLST (int OrderIndex, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.OrderIndex = OrderIndex;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"OrderIndex",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedByLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedByLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_HondaModelGroupEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedDateLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedDateLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_HondaModelGroupEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            PT_HondaModelGroupEntity obj = new PT_HondaModelGroupEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectWithConditionLST (PT_HondaModelGroupEntity obj)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_HondaModelGroupEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_HondaModelGroupEntity></returns>
        public List<PT_HondaModelGroupEntity> SelectWithConditionLST (PT_HondaModelGroupEntity obj,SelectOptions option)
        { 
            return  (List<PT_HondaModelGroupEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_HondaModelGroupEntity());
        }

}
}
